package com.jxpanda.spring.module.wechat.component.message.pojo.xml;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.jxpanda.spring.module.wechat.component.message.pojo.MsgType;
import com.jxpanda.spring.module.wechat.component.message.pojo.WechatXmlMessage;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * @author Panda
 */
@Data
@SuperBuilder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class WechatXmlTextMessage extends WechatXmlMessage {
    @JacksonXmlCData
    @JacksonXmlProperty(localName = "Content")
    private String content;

    @Override
    public String getMsgType() {
        return MsgType.TEXT.getValue();
    }
}
